Optimal. Leaf size=156 \[ -\frac{\sqrt{a^2+2 a b x+b^2 x^2} (a-b x) \sqrt{c+d x^2}}{x (a+b x)}+\frac{a \sqrt{d} \sqrt{a^2+2 a b x+b^2 x^2} \tanh ^{-1}\left (\frac{\sqrt{d} x}{\sqrt{c+d x^2}}\right )}{a+b x}-\frac{b \sqrt{c} \sqrt{a^2+2 a b x+b^2 x^2} \tanh ^{-1}\left (\frac{\sqrt{c+d x^2}}{\sqrt{c}}\right )}{a+b x} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.113191, antiderivative size = 156, normalized size of antiderivative = 1., number of steps used = 8, number of rules used = 8, integrand size = 35, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.229, Rules used = {1001, 813, 844, 217, 206, 266, 63, 208} \[ -\frac{\sqrt{a^2+2 a b x+b^2 x^2} (a-b x) \sqrt{c+d x^2}}{x (a+b x)}+\frac{a \sqrt{d} \sqrt{a^2+2 a b x+b^2 x^2} \tanh ^{-1}\left (\frac{\sqrt{d} x}{\sqrt{c+d x^2}}\right )}{a+b x}-\frac{b \sqrt{c} \sqrt{a^2+2 a b x+b^2 x^2} \tanh ^{-1}\left (\frac{\sqrt{c+d x^2}}{\sqrt{c}}\right )}{a+b x} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 1001
Rule 813
Rule 844
Rule 217
Rule 206
Rule 266
Rule 63
Rule 208
Rubi steps
\begin{align*} \int \frac{\sqrt{a^2+2 a b x+b^2 x^2} \sqrt{c+d x^2}}{x^2} \, dx &=\frac{\sqrt{a^2+2 a b x+b^2 x^2} \int \frac{\left (2 a b+2 b^2 x\right ) \sqrt{c+d x^2}}{x^2} \, dx}{2 a b+2 b^2 x}\\ &=-\frac{(a-b x) \sqrt{a^2+2 a b x+b^2 x^2} \sqrt{c+d x^2}}{x (a+b x)}-\frac{\sqrt{a^2+2 a b x+b^2 x^2} \int \frac{-4 b^2 c-4 a b d x}{x \sqrt{c+d x^2}} \, dx}{2 \left (2 a b+2 b^2 x\right )}\\ &=-\frac{(a-b x) \sqrt{a^2+2 a b x+b^2 x^2} \sqrt{c+d x^2}}{x (a+b x)}+\frac{\left (2 b^2 c \sqrt{a^2+2 a b x+b^2 x^2}\right ) \int \frac{1}{x \sqrt{c+d x^2}} \, dx}{2 a b+2 b^2 x}+\frac{\left (2 a b d \sqrt{a^2+2 a b x+b^2 x^2}\right ) \int \frac{1}{\sqrt{c+d x^2}} \, dx}{2 a b+2 b^2 x}\\ &=-\frac{(a-b x) \sqrt{a^2+2 a b x+b^2 x^2} \sqrt{c+d x^2}}{x (a+b x)}+\frac{\left (b^2 c \sqrt{a^2+2 a b x+b^2 x^2}\right ) \operatorname{Subst}\left (\int \frac{1}{x \sqrt{c+d x}} \, dx,x,x^2\right )}{2 a b+2 b^2 x}+\frac{\left (2 a b d \sqrt{a^2+2 a b x+b^2 x^2}\right ) \operatorname{Subst}\left (\int \frac{1}{1-d x^2} \, dx,x,\frac{x}{\sqrt{c+d x^2}}\right )}{2 a b+2 b^2 x}\\ &=-\frac{(a-b x) \sqrt{a^2+2 a b x+b^2 x^2} \sqrt{c+d x^2}}{x (a+b x)}+\frac{a \sqrt{d} \sqrt{a^2+2 a b x+b^2 x^2} \tanh ^{-1}\left (\frac{\sqrt{d} x}{\sqrt{c+d x^2}}\right )}{a+b x}+\frac{\left (2 b^2 c \sqrt{a^2+2 a b x+b^2 x^2}\right ) \operatorname{Subst}\left (\int \frac{1}{-\frac{c}{d}+\frac{x^2}{d}} \, dx,x,\sqrt{c+d x^2}\right )}{d \left (2 a b+2 b^2 x\right )}\\ &=-\frac{(a-b x) \sqrt{a^2+2 a b x+b^2 x^2} \sqrt{c+d x^2}}{x (a+b x)}+\frac{a \sqrt{d} \sqrt{a^2+2 a b x+b^2 x^2} \tanh ^{-1}\left (\frac{\sqrt{d} x}{\sqrt{c+d x^2}}\right )}{a+b x}-\frac{b \sqrt{c} \sqrt{a^2+2 a b x+b^2 x^2} \tanh ^{-1}\left (\frac{\sqrt{c+d x^2}}{\sqrt{c}}\right )}{a+b x}\\ \end{align*}
Mathematica [A] time = 0.283455, size = 118, normalized size = 0.76 \[ \frac{\sqrt{(a+b x)^2} \left (\frac{(b x-a) \sqrt{c+d x^2}}{x}+\frac{a \sqrt{c} \sqrt{d} \sqrt{\frac{d x^2}{c}+1} \sinh ^{-1}\left (\frac{\sqrt{d} x}{\sqrt{c}}\right )}{\sqrt{c+d x^2}}-b \sqrt{c} \tanh ^{-1}\left (\frac{\sqrt{c+d x^2}}{\sqrt{c}}\right )\right )}{a+b x} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [C] time = 0.228, size = 120, normalized size = 0.8 \begin{align*} -{\frac{{\it csgn} \left ( bx+a \right ) }{cx} \left ({c}^{{\frac{3}{2}}}\ln \left ( 2\,{\frac{\sqrt{c}\sqrt{d{x}^{2}+c}+c}{x}} \right ) \sqrt{d}xb-{d}^{{\frac{3}{2}}}\sqrt{d{x}^{2}+c}{x}^{2}a+a \left ( d{x}^{2}+c \right ) ^{{\frac{3}{2}}}\sqrt{d}-\sqrt{d}\sqrt{d{x}^{2}+c}xbc-\ln \left ( x\sqrt{d}+\sqrt{d{x}^{2}+c} \right ) xacd \right ){\frac{1}{\sqrt{d}}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\sqrt{d x^{2} + c} \sqrt{{\left (b x + a\right )}^{2}}}{x^{2}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.71983, size = 821, normalized size = 5.26 \begin{align*} \left [\frac{a \sqrt{d} x \log \left (-2 \, d x^{2} - 2 \, \sqrt{d x^{2} + c} \sqrt{d} x - c\right ) + b \sqrt{c} x \log \left (-\frac{d x^{2} - 2 \, \sqrt{d x^{2} + c} \sqrt{c} + 2 \, c}{x^{2}}\right ) + 2 \, \sqrt{d x^{2} + c}{\left (b x - a\right )}}{2 \, x}, -\frac{2 \, a \sqrt{-d} x \arctan \left (\frac{\sqrt{-d} x}{\sqrt{d x^{2} + c}}\right ) - b \sqrt{c} x \log \left (-\frac{d x^{2} - 2 \, \sqrt{d x^{2} + c} \sqrt{c} + 2 \, c}{x^{2}}\right ) - 2 \, \sqrt{d x^{2} + c}{\left (b x - a\right )}}{2 \, x}, \frac{2 \, b \sqrt{-c} x \arctan \left (\frac{\sqrt{-c}}{\sqrt{d x^{2} + c}}\right ) + a \sqrt{d} x \log \left (-2 \, d x^{2} - 2 \, \sqrt{d x^{2} + c} \sqrt{d} x - c\right ) + 2 \, \sqrt{d x^{2} + c}{\left (b x - a\right )}}{2 \, x}, -\frac{a \sqrt{-d} x \arctan \left (\frac{\sqrt{-d} x}{\sqrt{d x^{2} + c}}\right ) - b \sqrt{-c} x \arctan \left (\frac{\sqrt{-c}}{\sqrt{d x^{2} + c}}\right ) - \sqrt{d x^{2} + c}{\left (b x - a\right )}}{x}\right ] \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\sqrt{c + d x^{2}} \sqrt{\left (a + b x\right )^{2}}}{x^{2}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.18116, size = 170, normalized size = 1.09 \begin{align*} \frac{2 \, b c \arctan \left (-\frac{\sqrt{d} x - \sqrt{d x^{2} + c}}{\sqrt{-c}}\right ) \mathrm{sgn}\left (b x + a\right )}{\sqrt{-c}} - a \sqrt{d} \log \left ({\left | -\sqrt{d} x + \sqrt{d x^{2} + c} \right |}\right ) \mathrm{sgn}\left (b x + a\right ) + \sqrt{d x^{2} + c} b \mathrm{sgn}\left (b x + a\right ) + \frac{2 \, a c \sqrt{d} \mathrm{sgn}\left (b x + a\right )}{{\left (\sqrt{d} x - \sqrt{d x^{2} + c}\right )}^{2} - c} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]